import request from '@/utils/request'

// 个性化推荐视频
export function getPersonalizedRecommend(query) {
  return request({
    url: '/userApi/videos/recommend',
    method: 'get',
    params: query
  })
}

// 热门视频榜单
export function getHotVideos(query) {
  return request({
    url: '/userApi/videos/hotlist',
    method: 'get',
    params: query
  })
}

// 附近的视频
export function getNearbyVideos(query) {
  return request({
    url: '/userApi/videos/nearby',
    method: 'get',
    params: query
  })
}

// 最新视频
export function getLatestVideos(query) {
  return request({
    url: '/userApi/videos/latest',
    method: 'get',
    params: query
  })
}

// 随机推荐视频
export function getRandomVideos(query) {
  return request({
    url: '/userApi/videos/random',
    method: 'get',
    params: query
  })
}
